export default {
  isFullPlayer (state) {
    return state.isFullPlayer
  },
  isMiniPlayer (state) {
    return state.isMiniPlayer
  },
  isPlaying (state) {
    return state.isPlaying
  },
  modeType (state) {
    return state.modeType
  },
  getSongs (state) {
    return state.songs
  },
  currentSong (state) {
    let obj = {
      name: '',
      singer: '',
      picUrl: ''
    }
    if (state.songs.length !== 0) {
      obj = state.songs[state.currentIndex]
    }
    return obj
  },
  currentLyric (state) {
    return state.currentLyric
  },
  getIndex (state) {
    return state.currentIndex
  },
  getplayingTime (state) {
    return state.playingTime
  },
  getFavoriteList (state) {
    return state.favoriteList
  },
  getHistoryList (state) {
    return state.historyList
  }
}
